<?php

class Registry {

    private $container = array();
    
    public function __get($key) {
        
        return $this->container[$key];
    }
    
    public function __set($key, $value) {
    
        return $this->container[$key] = $value;
    }
    
    public function __isset($key) {

        return isset($this->container[$key]);
    }
    
    public function __unset($key) {

        unset($this->container[$key]);
    }
}